package com.zzc.repository;

import com.zzc.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRep extends JpaRepository<User,String> {

    @Query(value = "select * from USER where USER_ID = ?1",nativeQuery = true)
    User findByUserId(String userId);
}
